import LayoutBase from '@/page/layout/base'
import SliderCustomer from '@/page/layout/slider/customer'

export default [
  {
    path: '/customer',
    component: LayoutBase,
    children: [
      {
        path: '/pro',
        component: SliderCustomer,
        children: [
          {
            path: '/customer/list', // 我的客户
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/index'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/list/group/:typeId', // 分组客户
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/index'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/share', // 共享客户
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/share'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/subordinate/:userId', // 下属客户
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/subordinate'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/public', // 公海客户
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/common'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/myDetail/:id', // 我的客户详情页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/detail'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/subordinateDetail/:id', // 下属客户详情页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/detail'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/commonDetail/:id', // 公海客户详情页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/detail'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/shareDetail/:id', // 公海客户详情页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/detail/shareDetail'),

            meta: {title: '客户'}
          },
          {
            path: '/customer/admin', // 客户设置页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/admin'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/admin/:type', // 客户设置页
            component: () => import(/* webpackChunkName: "customer" */'@/views/customer/admin'),
            meta: {title: '客户'}
          },
          {
            path: '/mail/relationEmail/:id/:customerID',
            name: 'relationEmail',
            component: () => import(/* webpackChunkName: "relationEmail" */'@/views/mail/relation/relationEmail'),
            meta: {title: '客户'}
          },
          {
            path: '/mail/relationEmail/:id/:customerID/:userId',
            name: 'relationEmail',
            component: () => import(/* webpackChunkName: "relationEmail" */'@/views/mail/relation/relationEmail'),
            meta: {title: '客户'}
          },
          {
            path: '/customer/import/detail/:id', // 客户导入详情页
            name: 'importDetail',
            component: () => import(/* webpackChunkName: "relationEmail" */'@/views/customer/importDetail'),
            meta: {title: '客户'}
          }
        ]
      }
    ]

  }
]
